
<?php if($huux_style_one['hso_site_brief']) { ?>
<!-- 站点介绍 -->
<div class="card card-sitebrief">
  <div class="card-header text-bold"><?php echo $conf['sitename'];?></div>
  <div class="card-block">
        <?php echo $conf['sitebrief'];?>
  </div>
</div>
<?php }?>

<?php if($huux_style_one['hso_site_count']) { ?>
<!-- 统计信息 -->
<div class="card card-site-count">
  <div class="card-header text-bold">统计信息</div>
  <div class="card-block">
    <table cellpadding="5" cellspacing="0" border="0" width="100%">
      <tbody>
            <tr>
                <td width="50" align="right"><span class="text-muted"><?php echo lang('users');?></span></td>
                <td width="auto" align="left"><strong><?php echo $runtime['users'];?></strong></td>
            </tr>
            <tr>
                <td width="50" align="right"><span class="text-muted"><?php echo lang('threads');?></span></td>
                <td width="auto" align="left"><strong><?php echo $runtime['threads'];?></strong></td>
            </tr>
            <?php if($huux_style_one['hso_site_count']==2||$huux_style_one['hso_site_count']==3){ ?>
            <tr>
                <td width="50" align="right"><span class="text-muted"><?php echo lang('posts');?></span></td>
                <td width="auto" align="left"><strong><?php echo $runtime['posts'];?></strong></td>
            </tr>
            <?php }?>
<?php if($huux_style_one['hso_site_count']==1||$huux_style_one['hso_site_count']==3){ ?>
            <tr>
                <td width="50" align="right"><span class="text-muted"><?php echo lang('online');?></span></td>
                <td width="auto" align="left"><strong><?php echo $runtime['onlines'];?></strong></td>
            </tr>
<?php }?>
      </tbody>
    </table>
  </div>
</div>
<?php }?>

<?php if($huux_style_one['hso_site_user']) { ?>
<!-- 最新会员 -->
<div class="card card-newuser">
  <div class="card-header text-bold">最新会员</div>
  <div class="card-block">
        <?php $userlist = db_find('user', array('uid'=>array('>'=>1)), array('uid'=>-1), 1, 12, 'uid');
        foreach ($userlist as $user) { 
        $user_avatarimg = 'view/img/avatar.png';
        $user['avatar']!=0 and $user_avatarimg = $conf['upload_url'].'avatar/000/'.$user['uid'].'.png?'.$user['avatar'];
        $username = $user['username'];
        xn_strlen($user['username'])>3 && $username = xn_substr($user['username'], 0, 3).'..';
        ?>
    <div class="col-xs-4 m-b-sm text-center">
      <a class="tt" href="<?php echo url("user-$user[uid]");?>" data-toggle="tooltip" title="<?php echo $user['username'];?>"><img src="<?php echo $user_avatarimg; ?>" alt="<?php echo $user['username'];?>" width="28" height="28" class="img-circle"><br><?php echo $username;?></a>
    </div>
    <?php } ?>
  </div>
</div>
<?php }?>

